import Vue from 'vue'
import App from './App.vue'

import './registerServiceWorker'
//注册全局路由
import router from './router/index.js'

import store from './store/index'



//应用 vant  组件

// import Vant from 'vant';
import 'vant/lib/index.css';

import { ImagePreview } from 'vant';

// 全局注册
Vue.use(ImagePreview);
// Vue.use(Vant); //全局注册使用
import '@/utils/vant'    

import {reg} from "@/utils/validate"

Vue.prototype.$reg = reg

//全局的样式
import "@/styles/index.scss"

//配置淘宝
import "lib-flexible"

import '@/utils/golbal'        

import {baseURL} from '@/api/config'

Vue.prototype.$baseURL = baseURL

import "@/utils/mixins"

Vue.config.productionTip = false

import {http} from "@/api"
Vue.prototype.$ajax = http

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
